﻿#region imports

using System.Collections.Generic;
using System.Data.Services.Common;

#endregion

namespace Codeplex.ODataTFS.Model.Entities
{
	[DataServiceKey("Id")]
	[EntityPropertyMapping("Path", SyndicationItemProperty.Title, SyndicationTextContentKind.Plaintext, true)]
	[EntityPropertyMapping("Description", SyndicationItemProperty.Summary, SyndicationTextContentKind.Plaintext, true)]
	public class Query
	{
		// The Query Guid
		public string Id { get; set; }

		public string Name { get; set; }

		public string Description { get; set; }

		public string QueryText { get; set; }

		public string Path { get; set; }

		public virtual IEnumerable<WorkItem> WorkItems { get; set; }

		public string Project { get; set; }

		public string QueryType { get; set; }
	}
}
